package kaindorfcompany.webshop.productmanagement.backend.access;


public enum DbConnectionConfigProfile implements DbConnectionConfig {
    REMOTE_MAIN_MYSQL_DB("webshopdb", "webshop-admin", "kaindorf-company", "jdbc:mysql://infonovaee.htl-kaindorf.at:3306/", "com.mysql.jdbc.Driver"), 
    DEV_PM("webshop_dev_pm", "webshop-admin", "kaindorf-company", "jdbc:mysql://infonovaee.htl-kaindorf.at:3306/", "com.mysql.jdbc.Driver");
    
    /**
     * also called scheme
     */
    private String dbName;
    private String dbUser;
    private String dbPassword;
    private String dbUrl;
    private String dbDriver;

    private DbConnectionConfigProfile(String dbName, String dbUser, String dbPassword, String dbUrl,
            String dbDriver) {
        this.dbName = dbName;
        this.dbUser = dbUser;
        this.dbPassword = dbPassword;
        this.dbUrl = dbUrl;
        this.dbDriver = dbDriver;
    }


    public void setDbDriver(String dbDriver) {
        this.dbDriver = dbDriver;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public void setDbPassword(String dbPassword) {
        this.dbPassword = dbPassword;
    }

    public void setDbUrl(String dbUrl) {
        this.dbUrl = dbUrl;
    }

    public void setDbUser(String dbUser) {
        this.dbUser = dbUser;
    }

    @Override
    public String getDbDriver() {
        return dbDriver;
    }

    @Override
    public String getDbName() {
        return dbName;
    }

    @Override
    public String getDbPassword() {
        return dbPassword;
    }

    @Override
    public String getDbUrl() {
        return dbUrl;
    }

    @Override
    public String getDbUser() {
        return dbUser;
    }
}
